package com.chance.cc.crawler.development.command.script.news;

import com.chance.cc.crawler.core.downloader.HttpPage;
import com.chance.cc.crawler.development.command.script.ScriptCommand;

/**
 * @Author Zhao.Hhuan
 * @Date Create in 2020/12/21 10:24
 * @Description
 *
 *     新闻站点脚本的发布
 **/
public class NewsCrawlerScript {
    private static ScriptCommand scriptCommand = new ScriptCommand("192.168.1.215",9599);

    public static void publishCrawlerNodeScript(String domainId){

        HttpPage page = scriptCommand.publishCrawlerScript2Consul(domainId);
        System.out.println("发布采集脚本：" + page.getRawText());
    }
}
